<template>
  <view style="padding: 30rpx 24rpx">
    <view style="font-size: 24rpx; color: #adadad; margin-bottom: 30rpx">共{{ total }}条记录</view>
    <view v-for="(item, idx) in list" :key="idx" style="margin-bottom: 25rpx">
      <asset-item :info="item"></asset-item>
    </view>
  </view>
</template>

<script setup>
  import assetItem from '@/com/asset-item.vue'
  import { onLoad } from '@dcloudio/uni-app'
  import { ref } from 'vue'
  import mgr from './biz'

  const [total, list] = [ref(), ref([])]

  onLoad(() => {
    mgr.focusList().then((res) => {
      total.value = res.total
      list.value = res.list
    })
  })
</script>
<style lang="scss" scoped></style>
